The Capture ('cpts') Resource
The capture ('cpts'
) resource, of typegxCaptureType
, allows devices to be removed and replaced on a network during printer sharing (through theGXCaptureOutputDevice
message). This resource is not needed if your driver does not support the capture-and-release concept. The default version of theGXCaptureOutputDevice
messages uses these resources and works only for PAP devices. Figure 6-21 shows the structure of a capture resource.Figure 6-21 The capture resource
The system performs string substitution in any of the capture strings and defines constants that you can use for this purpose. Each of these constants is replaced with the appropriate value at run time. The constant strings are shown in Table 6-27.
- Capture string. The string that specifies capture information. There are four kinds of capture information, each of which you specify in a separate capture resource. The four capture-string resource type constants are shown in Table 6-26.
The four capture resources shown in Listing 6-19 are taken from the ImageWriter II printer driver.
Listing 6-19 Examples of capture resources for a printer driver
resource gxCaptureType (gxCapturedAppleTalkType, sysHeap, purgeable) { "\0D011ImageShared"}; resource gxCaptureType (gxUncapturedAppleTalkType, sysHeap, purgeable) { "\0D011ImageWriter"}; resource gxCaptureType (gxCaptureStringID, sysHeap, purgeable) { "\0X1B\0X62NAMELENPRINTERNAMETYPELENPRINTERTYPE\0X01*"}; resource gxCaptureType (gxReleaseStringID, sysHeap, purgeable) { "\0X1B\0X62NAMELENPRINTERNAMETYPELENPRINTERTYPE\0X01*"};
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help